﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RechercheEmplois.Models
{
    public class Postule
    {
        public int ID { get; set; }

        public int UtilisateurID { get; set; }

        
        public int OffreID { get; set; }

        public DateTime DatePostule { get; set; }

        [Required]
        [Display(Name = "Curriculum vitae")]
        public string CV { get; set; }

        [Required]
        [Display(Name = "Lettre de motivation")]
        public string LettreMotivation { get; set; }

        public string Commentaire { get; set; }


        //Navigation Properties
        public virtual Utilisateur Recruiteur { get; set; }

        public virtual Offre Offre { get; set; }

    }
}